
import sys

from PyQt4.QtCore import *
from PyQt4.QtGui import *

app = QApplication(sys.argv)

mw = QMainWindow()
mw.setGeometry(4,4,600,425)
cw = QWidget()
vlayout = QVBoxLayout()
#vlayout.addWidget(myScene.view)
container = QX11EmbedContainer(cw)
container.setGeometry(4,4,600,425)
container.show()
wid = container.winId()
parametersList = ["-into", str(wid), "-bg", "black", "-fg", "white"]
process = QProcess(container)
process.start("xterm", parametersList)
container.embedClient(0x2800006)

vlayout.addWidget(container)
cw.setLayout(vlayout)
cw.show()

mw.show()
mw.setCentralWidget(cw)

from PyQt4.QtWebKit import *
wk = QWebView()
dock = QDockWidget("WebKit Documentation")
dock.setObjectName("WebKitDocumentation")
dock.setAllowedAreas(Qt.RightDockWidgetArea|Qt.LeftDockWidgetArea)
dock.setWidget(wk)
mw.addDockWidget(Qt.LeftDockWidgetArea, dock)
statuslabel = QLabel()
statuslabel.setFrameStyle(QFrame.StyledPanel|QFrame.Sunken)
status = mw.statusBar()
status.setSizeGripEnabled(False)
status.addPermanentWidget(statuslabel)
status.showMessage("tekst u prvom redu")
wk.setUrl(QUrl("file:///usr/share/doc/PyQt4/doc/html/qwebview.html"))
mw.menuBar().addMenu("Foo")



ret = app.exec_()
process.close()
sys.exit(ret)
